package neuroPoker4.netze.tool;

import neuroPoker.netze.NetAction;

public class NetAction2 extends NetAction {

	public NetAction2(int actionConst) {
		super(actionConst);
	}

	public double[] getInput() {
		if (this.actionConst == empty)
			return new double[] { 0., 0. };
		if (this.actionConst == fold)
			return new double[] { 0., 0. };
		if (this.actionConst == folded)
			return new double[] { 0., 0. };
		if (this.actionConst == none)
			return new double[] { 0., 1. };
		if (this.actionConst == checkCall)
			return new double[] { 1., 0. };
		if (this.actionConst == raise)
			return new double[] { 1., 1. };
		System.err.println(this.getClass() + " : getInput()-error");
		return null;
	}

	public String toString() {
		if (this.actionConst == empty)
			return "empty";
		if (this.actionConst == fold)
			return "fold";
		if (this.actionConst == folded)
			return "folded";
		if (this.actionConst == none)
			return "none";
		if (this.actionConst == checkCall)
			return "checkCall";
		if (this.actionConst == raise)
			return "raise";
		System.err.println(this.getClass() + " : toString()-error");
		return "err";
	}

	@Override
	public int getInputSize() {
		return 2;
	}
}
